﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ihongma.Web.UI.Page.article_list" ValidateRequest="false" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="ihongma.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by ihongma Template Engine at 2013/9/5 17:13:42.
		本页面代码由ihongma模板引擎生成于 2013/9/5 17:13:42. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	const int channel_id = 1;

	templateBuilder.Append("<!DOCTYPE HTML>\r\n<html lang=\"zh-CN\">\r\n<head>\r\n<meta charset=\"utf-8\" />\r\n");
	string category_title = get_category_title(category_id,"有趣的人和事");
	

	templateBuilder.Append("\r\n<title>");
	templateBuilder.Append(category_title);
	templateBuilder.Append("|");
	templateBuilder.Append(config.webname);
	templateBuilder.Append("</title>\r\n<meta name=\"description\" content=\"");
	templateBuilder.Append(category_title);
	templateBuilder.Append("\" />\r\n<meta name=\"keywords\" content=\"");
	templateBuilder.Append(category_title);
	templateBuilder.Append(",创新，设计，有趣的人和事，技术，文档,网页设计与制作,技术, 一日禅,梦想,读图,设备\" />\r\n ");

	templateBuilder.Append("<meta content=\"all, index, follow\" name=\"robots\">\r\n<meta content=\"Copyright 2013 ihongma.com\" name=\"copyright\">\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n<link rel=\"shortcut icon\" href=\"/favicon.ico\">\r\n<link rel=\"stylesheet\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/global.css\"\r\ntype=\"text/css\" media=\"screen\" />\r\n<link rel=\"stylesheet\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/font-awesome.min.css\">\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:1483px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max1483.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:1232px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max1232.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:991px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max991.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:750px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max750.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:479px)\" href=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/css/max479.css\"\r\n/>");


	templateBuilder.Append("\r\n\r\n\r\n\r\n\r\n\r\n<body>\r\n\r\n");

	templateBuilder.Append("<header>\r\n<script>\r\n    function submitTest() {\r\n        if ($(\"#d_search\").val() == \"\")\r\n        { return false; }\r\n        else {\r\n            return true;\r\n        }\r\n    }\r\n</");
	templateBuilder.Append("script>\r\n  <div class=\"wrapper\">\r\n    <a class=\"logo\" href=\"http://www.ihongma.com/\" title=\"鸿马网\">鸿马网</a>\r\n    <div class=\"search\">\r\n    <form method=\"get\"  action=\"/search.aspx\"   onsubmit='return submitTest()'>\r\n      <input class=\"submit_input\" id=\"d_search\" name=\"keyword\" placeholder=\"Search...\" type=\"text\">\r\n      <input class=\"submit_button\" value=\"Search\" type=\"submit\">\r\n       </form>\r\n    </div>\r\n    <div class=\"menu_icon\"><span class=\"icon-align-justify\"></span></div>\r\n    <div class=\"menu\">\r\n      <ul>\r\n      <li><a id=\"a0\"  href=\"/\">首页</a></li>\r\n      <li><a id=\"a11\" href=\"");
	templateBuilder.Append(linkurl("design_list1",""));

	templateBuilder.Append("\">网站设计</a></li>\r\n      <li><a id=\"a14\" href=\"");
	templateBuilder.Append(linkurl("services",""));

	templateBuilder.Append("\">鸿马服务</a></li>\r\n      <li><a id=\"a13\" href=\"");
	templateBuilder.Append(linkurl("ajax_list1",""));

	templateBuilder.Append("\">JS特效</a></li>\r\n      <li><a id=\"a10\" href=\"");
	templateBuilder.Append(linkurl("photo_list1",""));

	templateBuilder.Append("\">图片库</a></li>\r\n      <li><a id=\"a1\" href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\">有趣的事</a></li>\r\n      </ul>\r\n      <div class=\"menu_close\"><span class=\"icon-remove\"></span></div>\r\n    </div>\r\n  </div>\r\n  <hr> \r\n</header>");


	templateBuilder.Append("\r\n\r\n<div class=\"wrapper\">\r\n  <div class=\"centre_col\">\r\n    <ul>\r\n    ");
	DataTable list = get_article_list(channel_id, category_id, 12, page, "is_lock=0", out totalcount);
	

	templateBuilder.Append(" <!--取得一个DataTable-->\r\n    ");
	string pagelist = newget_page_link(12, page, totalcount, "article_list", category_id, "__id__");
	

	templateBuilder.Append(" <!--取得分页页码列表-->\r\n    ");
	int dr__loop__id=0;
	foreach(DataRow dr in list.Rows)
	{
		dr__loop__id++;


	templateBuilder.Append("\r\n      <li>\r\n        <div class=\"img\"><a href=\"");
	templateBuilder.Append(linkurl("article_show",dr["id"].ToString().Trim()));

	templateBuilder.Append("\"><img src=\"" + dr["img_url"].ToString().Trim() + "\" width=\"459\" height=\"170\"></a></div>\r\n        <h1><a href=\"");
	templateBuilder.Append(linkurl("article_show",dr["id"].ToString().Trim()));

	templateBuilder.Append("\" title=\"" + dr["title"].ToString().Trim() + "\">" + dr["title"].ToString().Trim() + "</a></h1>\r\n        <p class=\"time\">" + dr["add_time"].ToString().Trim() + "</P>\r\n        <p class=\"con\"><a href=\"");
	templateBuilder.Append(linkurl("article_show",dr["id"].ToString().Trim()));

	templateBuilder.Append("\">" + dr["zhaiyao"].ToString().Trim() + "</a></p>\r\n      </li>\r\n       ");
	}	//end loop


	templateBuilder.Append("\r\n    \r\n    </ul>\r\n    <div class=\"clearfix margin_top30\"></div>\r\n    <!--page-->\r\n    <div class=\"pag\">\r\n    ");
	templateBuilder.Append(pagelist);
	templateBuilder.Append("\r\n    </div>\r\n    <!---->\r\n  </div>\r\n  <dl class=\"centre_col_list\">\r\n    ");

	templateBuilder.Append("<dt><a style=\"color:#D94650;\" href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\" >\r\n                        有趣的事\r\n                    </a></dt>\r\n\r\n          ");
	DataTable category_list1 = get_category_list(1, 0);
	

	int cdr1__loop__id=0;
	foreach(DataRow cdr1 in category_list1.Rows)
	{
		cdr1__loop__id++;


	templateBuilder.Append("\r\n    <dd>\r\n    \r\n      <a  href=\"");
	templateBuilder.Append(linkurl("article_list",cdr1["id"].ToString().Trim(),1));

	templateBuilder.Append("\" >" + cdr1["title"].ToString().Trim() + "</a></dd>\r\n    ");
	}	//end loop




	templateBuilder.Append("\r\n  </dl>\r\n  <div class=\"clearfix\"></div>\r\n</div>\r\n  \r\n  ");

	templateBuilder.Append("<footer>\r\n  <div class=\"wrapper\">\r\n    <div class=\"sitemap\"><strong>IHONG<font class=\"hongmaColor\">MA</font></strong><br><a href=\"#\">sitemap</a></div>\r\n    <p class=\"usfrid\">\r\n      <strong>访问我们的好友</strong><span><a href=\"http://www.microsoft.com/\" target=\"_blank\">微软</a>|<a href=\"http://feixin.10086.cn/\" target=\"_blank\">飞信</a>|<a href=\"http://www.bjhqlc.com/\" target=\"_blank\">华强联创</a>|<a href=\"http://www.canyin.com/\" target=\"_blank\">中国餐饮网</a>|<a href=\"http://www.baidu.com/\" target=\"_blank\">百度</a>|<a href=\"http://www.csdn.net/\" target=\"_blank\">csdn</a></span>\r\n    </p>\r\n    <p class=\"cp\">Copyright &copy; <strong>Ihongma</strong> 京ICP备12052092号&nbsp;&nbsp;&nbsp;<span><a href=\"/services.aspx\">鸿马服务</a>|<a href=\"/contact_sub.aspx\">联系我们</a>|<a href=\"/content/about.aspx\">关于我们</a></span><br><a class=\"blog\"  target=\"_blank\" href=\"http://e.weibo.com/ihongma\">微博关注</a></p>\r\n    <div class=\"clearfix\"></div>\r\n  </div>\r\n</footer>\r\n\r\n\r\n\r\n\r\n\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery-1.7.1.min.js\"></");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery-ui.js\"></");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/ihongma.js\"></");
	templateBuilder.Append("script>\r\n<!--[if lt IE 9]>\r\n<script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></");
	templateBuilder.Append("script>\r\n<script src=\"http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js\"></");
	templateBuilder.Append("script>\r\n<![endif]-->\r\n\r\n\r\n<!-- include jQuery + carouFredSel plugin -->\r\n<script type=\"text/javascript\" src=\"/templates/");
	templateBuilder.Append(config.html5templateskin);
	templateBuilder.Append("/js/jquery.carouFredSel-6.2.1-packed.js\"></");
	templateBuilder.Append("script>");


	templateBuilder.Append("\r\n\r\n</body>\r\n</html>");
	Response.Write(templateBuilder.ToString());
}
</script>
